﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SaiLing.Exceptions
{
    public class BusinessException : Exception
    {
        public BusinessException(int errorCode) : base()
        {
            this.ErrorCode = errorCode;
        }
        public BusinessException(string message, int errorCode) : base(message)
        {
            this.ErrorCode = errorCode;
        }
        public BusinessException(string message, Exception exception, int errorCode) : base(message, exception)
        {
            this.ErrorCode = errorCode;
        }

        public int ErrorCode { get; set; }
    }
}
